package com.tarena.lbs.basic.dao.mapper;

import com.tarena.lbs.basic.pojo.vo.TagLibraryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagMapper{
    @Select("select id,tag_name from lbs_tag_library where tag_type = '0' and tag_parent_id = '0'")
    List<TagLibraryVO> queryTagLibrary();

    @Select("select * from lbs_tag_library where tag_parent_id = #{parentId}")
    List<TagLibraryVO> queryChildren(Integer parentId);
}
